export default {
    namespaced: true,
    state: {
        appData: [],
        // 页面数据
        data: null
    },
    getters: {

    },
    mutations: {
        SET_PAGE_DATA(state, payload) {
            state.data = payload;
        },
        SET_APP_DATA(state, payload) {
            state.appData = payload;
        },
    },
    actions: {
        setPageData(context, data){
            context.commit(
                "SET_PAGE_DATA",
                data
            );
        },
        setAppData(context, data){
            context.commit(
                "SET_APP_DATA",
                data
            );
        }
    }
}